﻿<%@page import="com.mmy.domain.hotel.THotelPlan"%>
<%@page import="com.mmy.domain.hotel.VHotelPlan"%>
<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.VHotelBase"%>
<%@page import="com.mmy.domain.hotel.THotelRoom"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>酒店信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>酒店信息</h2>			
		</div>
	</header>
	<section class="container">
	

			
			<nav class="breadcrumb" >
				<a href="hotelindex" >酒店基本信息</a> | 
				<a href="hotelplan" >酒店计划</a>  
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
				</nav>
				<div class="information" >
					
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>酒店信息详情</label>
						</h4>
						<div class="input-container">
				<table class="info-table">
					<tr>
							
								<th><label >酒店名称</label></th>
							<td colspan="2">
								<input type="hidden" name="HotelID" value="${newVHotelBase.getHotelID()}" readonly="readonly"/>
<label >${newVHotelBase.getHotelName()}</label>
							</td>
							<th><label >酒店代号</label></th>
							<td colspan="2">
								<label>${newVHotelBase.getHotelCode()} </label>
							</td>
							</tr>
							<tr>
							
							<th><label>区域</label></th>
					<td colspan="2">
					<label>${newVHotelBase.getZoneName()}" </label>
							</td>
							<th><label >地址</label></th>
							<td colspan="2">
								<label>${newVHotelBase.getAddress()} </label>
							</td>
						</tr>
						<tr >
							<th><label >联系人</label></th>
							<td colspan="2">
								<label >${newVHotelBase.getContact()}</label>
							</td>
							
							<th><label >联系电话</label></th>
							<td colspan="2">
								<label >${newVHotelBase.getTel()}</label>
							</td>
							
						</tr>
						<tr>
						<th><label >酒店星级</label></th>
							<td colspan="2">
							<label>${newTHotelBase.getRate()}</label>
							</td>
							<th><label >酒店类型</label></th>
							<td colspan="2">
							<c:if test="${newVHotelBase.getType()==0}"><label>星级酒店</label></c:if>
<c:if test="${newVHotelBase.getType()==1}"><label>快捷酒店</label></c:if>
<c:if test="${newVHotelBase.getType()==2}"><label>民宿</label></c:if>
<c:if test="${newVHotelBase.getType()==3}"><label>别墅</label></c:if>
							</td>
							
						</tr>
						<tr >
							<th><label >建筑年份</label></th>
							<td >
								<label>${newVHotelBase.getYear()}年建</label>
							</td>
							
							<th><label>楼层高度</label></th>
							<td >
								<label>${newVHotelBase.getHeight()}米</label>
								</td>
<th><label>房间总数量</label></th>

								<td>
								<label>${newVHotelBase.getRoom()}}间</label>
							</td>
							
						</tr>
						<tr>
							<th><label >酒店介绍</label></th>
							<td colspan="5">
								
								<label>${newVHotelBase.getIntro()}</label>
							</td>
							
							</tr>
							<tr>
							<th><label >订房须知</label></th>
							<td colspan="5">
								<label>${newVHotelBase.getNotice()} </label>
							</td>
							
							</tr>
							<tr>
							<th><label >酒店设施</label></th>
							<td colspan="5">
								<label>${newVHotelBase.getFacilities()}</label>
							</td>
							
							</tr>
								<tr>
							<th><label>酒店图片</label></th>
							<td colspan="5">
								<<label>${newVHotelBase.getImgPath()}</label>
							</td>
							
							</tr>
								<tr>
							<th><label>酒店评价</label></th>
							<td colspan="5">
								<label>${newVHotelBase.getEvaluation()}</label>
							</td>
							
							</tr>
							
					
						<tr>
							<th><label>备注</label></th>
					<td colspan="5">
						<label>${newVHotelBase.getMemo()}</label>
					</td>
							
						</tr>
						</table>
				</div>
				<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>酒店房间详情</label>
						</h4>
						<div class="input-container">
							<div class="select-condition">
							<div class="at-float-right">
							
							<input type="button" class="btn " value="新建"  onclick="location.href='/mmy/tocreatehotelroom?iHotelID='+${newVHotelBase.getHotelID()}" />
							<input type="button" class="btn " value="修改"  onclick="updateHotelRoom()"/>
							<input type="button" class="btn"  value="删除" onclick="delHotelRoomBatch()"/>
							<input type="button" class="btn"  value="预留" onclick="createHotelReserve()"/>
							</div>
						</div>
						<table class="info-table">
						<tr>
						<th >
							<label><input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">全选</label>
								</th>
								<th colspan="10">
							<label>详情</label>
								</th>
								</tr>
						
								<!-- 循环显示每个用户的信息 用jstl-->
      					  <c:forEach items="${newTHotelRoom}" var="tHotelRoom" varStatus="status">
							<tr>
								<td rowspan="3"><input type="checkbox" name="ckone" value="${tHotelRoom.getRoomID()}" onclick="ckOne(this)" /></td> 
								<th rowspan="3"><label>${tHotelRoom.getImgPath()}</label></th>	
								<th><label>房间名称</label></th>
								<th><label>房间类型</label></th>
								<th><label>房间大小</label></th>
								<th><label>所在楼层</label></th>
								<th><label>是否有窗</label></th>
								<th><label>是否有wifi</label></th> 
								<th><label>是否有宽带</label></th>
								<th><label>是否有早餐</label></th>
								<th><label>适合居住人数</label></th> 
								
							</tr>
							
           				 	<tr >
            			   		<td><label><a href = "hotelorder?iRoomID=${tHotelRoom.getRoomID()}">${tHotelRoom.getRoomName()}</a></label></td>
				                 <td ><label>${tHotelRoom.getRoomType()}</label></td>
				                <td ><label>${tHotelRoom.getRoomSize()}</label></td>
				                <td ><label>${tHotelRoom.getOnFloor()}</label></td>
				                <td ><c:if test="${tHotelRoom.getWindows()==0}"><label>无</label></c:if>
<c:if test="${tHotelRoom.getWindows()==1}"><label>有</label></c:if>
</td>   
<td ><c:if test="${tHotelRoom.getWifi()==0}"><label>无</label></c:if>
<c:if test="${tHotelRoom.getWifi()==1}"><label>有</label></c:if>
</td>  
		<td ><c:if test="${tHotelRoom.getNetwork()==0}"><label>无</label></c:if>
<c:if test="${tHotelRoom.getNetwork()==1}"><label>有</label></c:if>
</td> 	
	<td ><c:if test="${tHotelRoom.getBreakfast()==0}"><label>无</label></c:if>
<c:if test="${tHotelRoom.getBreakfast()==1}"><label>有</label></c:if>
</td> 	
			  <td ><label>${tHotelRoom.getNumber()}</label></td>            	
				            </tr>
				            <tr>
				            <th><label>备注</label></th> 
				            <td colspan="8"><label>${tHotelRoom.getMemo()}</label></td></tr>
	      				  </c:forEach>
						</table>
						
						</div>	
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>